package service;

import entity.Message;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by wang.bh
 */
public class Boot {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("context/context.xml");
//        FooService fs =  context.getBean("fooService", FooService.class );

//        fs.updateFoo(new Message());
//        fs.require();
        ProgrammaticFooService fooService = context.getBean("programmaticFooService", ProgrammaticFooService.class);

//        fooService.update();
        fooService.require();
    }
}
